mui.init({
	pullRefresh: {
		container: '#pullrefresh',
		down: {
			contentdown: "下拉可以刷新",
			contentover: "释放立即刷新",
			contentrefresh: "正在刷新...",
			callback: function() {
			}
		},
		up: {
			contentrefresh: "正在加载...",
			contentnomore: '没有更多数据了',
			callback: function() {}
		},
	},
	keyEventBind: {
		backbutton: false //关闭back按键监听
	},
	swipeBack: true //启用右滑关闭功能
});

mui.plusReady(function(){
	if (mui.os.android) {
		mui.back = function() {
			var btn = ["退出", "取消"];
			mui.confirm('您确定要退出应用吗？', '退出确认', btn, function(e) {
				if (e.index == 0) {
					plus.runtime.quit();
					PluginWrapper.exit();
				}
			});
		};
	};
})
//初始化scroll控件
mui('.mui-scroll-wrapper').scroll({
	indicators: true
});